@extends('layouts.shop_home')
@section('content')


<b class="line"></b>		
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-order">

						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">退换货管理</strong> / <small>Change</small></div>
						</div>
						<hr/>

						<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>


							<div class="am-tabs-bd">
								<div class="am-tab-panel am-fade am-in am-active" id="tab1">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-orderprice th-price">
											<td class="td-inner">退款金额</td>
										</div>
										<div class="th th-changeprice th-price">
											<td class="td-inner">退款原因</td>
										</div>
										<div class="th th-status th-moneystatus">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change th-changebuttom">
											<td class="td-inner">交易操作</td>
										</div>
									</div>
								@foreach($refundInfo as $v)
									<div class="order-main">
										<div class="order-list">
											<div class="order-title">
												<div class="dd-num">退款编号：<a href="javascript:;">{{$v->order_num}}</a></div>
												<span>申请时间：{{date('Y-m-d H:i:s',$v->refund_time)}}</span>
												    <em>用户：{{$v->name}}</em>
											</div>
											<div class="order-content">
												<div class="order-left">
													<ul class="item-list">
														<li class="td td-item">
															<div class="item-pic">
																<a href="#" class="J_MakePoint">
																	<img src="/upload/images/{{$v->pic}}" class="itempic J_ItemImg">
																</a>
															</div>
															<div class="item-info">
																<div class="item-basic-info">
																	<a href="#">
																		<p>{{$v->goods_name}}</p>
																		<p class="info-little">{{$v->style}} </p>
																	</a>
																</div>
															</div>
														</li>

														<ul class="td-changeorder">
															
															<li class="td td-changeprice">
																<div class="item-changeprice">
																	<span>退款金额：</span>{{$v->refund_money}}
																</div>
															</li>
															<li class="td td-changeprice">
															<div class="item-status">
																<p class="Mystatus">{{$reason[$v->id]}}</p>

															</div>
															</li>
														</ul>
														<div class="clear"></div>
													</ul>
													
													<div class="change move-right">
														<li class="td td-moneystatus td-status">
															<div class="item-status">
																<p class="Mystatus">{{$status[$v->id]}}</p>

															</div>
														</li>
													</div>
													<li class="td td-change td-changebutton" style="@if($v->refund == 2) display:none @endif">
														<a href="/doRefund/{{$v->order_num}}/{{$v->order_id}}">
														<div class="am-btn am-btn-danger anniu">
															同意退款</div>
														</a>
													</li>

												</div>
											</div>
										</div>

									</div>
								@endforeach
								</div>

							</div>

						</div>
					</div>

				</div>

@endsection                  